﻿using System.Collections.Generic;
using System.Linq;

namespace WebCrawler
{
    public interface IContentTypeManager
    {
        bool CanHaveUrls(string contentType);
    }

    public class ContentTypeManager : IContentTypeManager
    {
        private HashSet<string> _withUrls = new HashSet<string>(new[] { "text/html", "text/html; charset=utf-8" });
        
        public bool CanHaveUrls(string contentType)
        {
            return _withUrls.Contains(contentType);
        }
    }
}